// 配置路由(常量路由)
export const constantRoutes = [
  {
    path: '/',
    redirect: '/home',
  },
  {
    path: '/home',
    name: 'home', //命名路由
    component: () => import('@/views/home/index.vue'),
  },
  {
    path: '/login',
    name: 'login', //命名路由
    component: () => import('@/views/login/index.vue'),
  },
  {
    path: '/404',
    name: '404', //命名路由
    component: () => import('@/views/404/index.vue'),
  },
  {
    path: '/:pathMatch(.*)*', //任意路由，当前边的路由都不匹配的时候，将匹配这一个
    redirect: '/404', //重定向到404
    name: 'any', //命名路由
  },
]
